package router

import (
	"github.com/gin-gonic/gin"
	jwt "github.com/golangblogs/gojwt"
)

func LoadRouter(r *gin.Engine) {
	user := r.Group("/user")
	{
		user.POST("/login", Login)
		user.Use(jwt.JWTAuth("2209a"))
		user.POST("/realname", RealName)

	}
	scenic := r.Group("/scenic")
	{
		scenic.POST("/essync", EsSync)
		scenic.POST("/essear", EsSear)
		scenic.POST("/scenicshow", ScenicShow)
	}
	order := r.Group("/order")
	{
		order.POST("/ordercall", OrderCall)
		order.Use(jwt.JWTAuth("2209a"))
		order.POST("/orderadd", OrderAdd)
		order.POST("/ordershow", OrderShow)
		order.POST("/incure", InCure)

	}

}
